﻿/*----------------------------------------------------------------
// Copyright (C) 2012
// 版权所有
//
// 文件名：IOrderOnline_City.cs
// 文件功能描述：
//
//
// 创建标识：Libing 2012-05-10 00:53:12 星期四
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Text;

namespace WMS.IDAL
{
	public interface IOrderOnline_City
	{
		#region 基本方法

		/// <summary>
		/// 添加实体
		/// </summary>
		/// <param name="orderOnlineCity">类型为 WMS.Model.OrderOnline_City 的实体</param>
		/// <returns></returns>
		bool Insert(WMS.Model.OrderOnline_City orderOnlineCity);

		/// <summary>
		/// 修改实体
		/// </summary>
		/// <param name="orderOnlineCity">类型为 WMS.Model.OrderOnline_City 的实体</param>
		/// <returns></returns>
		bool Update(WMS.Model.OrderOnline_City orderOnlineCity);

		/// <summary>
		/// 最小修改实体
		/// </summary>
		/// <param name="model">类型为WMS.Model.OrderOnline_City的实体</param>
		/// <returns></returns>
		bool UpdateMinimal(WMS.Model.OrderOnline_City orderOnlineCity);

		/// <summary>
		/// 删除实体(根据主键 ID)
		/// </summary>
		/// <param name="id">Id</param>
		/// <returns></returns>
		bool DeleteByID(string id);

		/// <summary>
		/// 删除实体(指定条件)
		/// </summary>
		/// <param name="whereClause">WHERE语句</param>
		/// <returns></returns>
		bool DeleteDynamic(string whereClause);

		/// <summary>
		/// 获取实体(根据主键 ID)
		/// </summary>
		/// <param name="id">Id</param>
		/// <returns></returns>
		WMS.Model.OrderOnline_City GetByID(string id);

		#endregion

		#region	公共方法

		/// <summary>
		/// 获取实体列表(指定数目和查询条件)
		/// </summary>
		/// <param name="topClause">指定实体数</param>
		/// <param name="whereClause">WHERE语句</param>
		/// <returns></returns>
		List<WMS.Model.OrderOnline_City> Get(int topClause, string whereClause);

		/// <summary>
		/// 获取实体列表(指定查询条件)
		/// </summary>
		/// <param name="whereClause">WHERE语句</param>
		/// <returns></returns>
		List<WMS.Model.OrderOnline_City> Get(string whereClause);

		/// <summary>
		/// 获取分页实体列表
		/// </summary>
		/// <param name="whereClause">WHERE 语句</param>
		/// <param name="orderByClause">ORDER BY 语句</param>
		/// <param name="pageIndex">分页索引</param>
		/// <param name="pageSize">分页大小(每页显示的记录数)</param>
		/// <param name="totalRecords">记录总数</param>
		/// <returns></returns>
		List<WMS.Model.OrderOnline_City> GetPaged(string whereClause, string orderBy, int pageIndex, int pageSize, out int totalRecords);

		#endregion

		#region 自定义方法

        /// <summary>
        /// 获取实体列表(指定查询条件)
        /// </summary>
        /// <param name="provinceID">省份ID</param>
        /// <returns></returns>
        List<WMS.Model.OrderOnline_City> GetByProvinceID(string provinceID);

		#endregion
	}
}
